package com.bank.service;

import com.bank.model.*;
import com.bank.utils.CRUD;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InfoService {

    @Autowired
    CRUD op;

    public List<Assets> getAllAssetsList(String uid){
        return op.getAllAssetsByUid(uid);
    }

    public List<Card> getAllCardsList(String uid){
        return op.getAllCardsByUid(uid);
    }

    public List<Stock> getAllSaledStockList(){
        return op.getAllSaledStocksInfo();
    }

    public List<Fund> getAllSaledFundList(){
        return op.getAllSaledFundsInfo();
    }

    public List<Insurance> getAllSaledInsuranceList(){
        return op.getAllSaledInsurancesInfo();
    }

    public List<Transaction> getAllTransactionList(String uid){
        return op.getAllTransactionsByUid(uid);
    }
}
